package top.mataiji.manager.util;

import java.util.Random;

public class Code {
    private static final String codes = "123456789abcdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ";

    public static String getCodes(){
        Random random = new Random();
        String code = "";
        for (int i = 0; i < 4; i++) {
            code += codes.charAt((int)(random.nextDouble()*59+1));
        }
        return code;
    }
}
